package com.knight.study.patterns.tujie.state;

/**
 * @Author knight
 * @Date 2024/9/12 16:10
 */

public class StateMains {
    public static void main(String[] args) {
        SageFrame frame = new SageFrame("State Sample");
        while (true) {
            for (int hour = 0; hour < 24; hour++) {
                frame.setClock(hour);
                try {
                    Thread.sleep(1000);
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
